package com.seegw.shaphar;

import com.sphsine.bip.ISHYPDomain;

public abstract class DDKJConfig {

    /**
     * 获取 App ID
     *
     * @return App ID
     */
    abstract String getAppID();

    public abstract void setUseSandbox(boolean useSandbox);
    public abstract  boolean getUseSandbox();
    /**
     * 获取 API 密钥
     *
     * @return API密钥
     */
    abstract String getSecret();


    abstract String getEnterpriseId();
    /**
     * HTTP(S) 连接超时时间，单位毫秒
     *
     * @return
     */
    public int getHttpConnectTimeoutMs() {
        return 6*1000;
    }

    /**
     * HTTP(S) 读数据超时时间，单位毫秒
     *
     * @return
     */
    public int getHttpReadTimeoutMs() {
        return 120*1000;
    }

    /**
     * 获取WXPayDomain, 用于多域名容灾自动切换
     * @return
     */
    public abstract IKDLDomain getKDLDomain();

}
